package kr.saeildamil.androidforstudy2.ch21;

import kr.saeildamil.androidforstudy2.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch21Main extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch21_main);
	}
	
	public void mOnClick(View v){
		Intent intent = new Intent();
		switch (v.getId()) {
		case R.id.ch21_btn01:
			intent.setClass(this, ActionBarTest.class);
			break;
		case R.id.ch21_btn02:
			intent.setClass(this, NoActionBarTest.class);
			break;
		case R.id.ch21_btn03:
			intent.setClass(this, ShowHideActionBarTest.class);
			break;
		case R.id.ch21_btn04:
			intent.setClass(this, OverlayShowHideActionBarTest.class);
			break;
		case R.id.ch21_btn05:
			intent.setClass(this, ActionView.class);
			break;
		case R.id.ch21_btn06:
			intent.setClass(this, ActionSwitch.class);
			break;
		case R.id.ch21_btn07:
			intent.setClass(this, ActionProviderTest.class);
			break;
		case R.id.ch21_btn08:
			intent.setClass(this, ShareAction.class);
			break;
		case R.id.ch21_btn09:
			intent.setClass(this, ActionTab.class);
			break;
		}
		startActivity(intent);
	}
}
